package com.syq.entity;

import java.util.ArrayList;
import java.util.List;

public class AdminExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AdminExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnameIsNull() {
            addCriterion("aName is null");
            return (Criteria) this;
        }

        public Criteria andAnameIsNotNull() {
            addCriterion("aName is not null");
            return (Criteria) this;
        }

        public Criteria andAnameEqualTo(String value) {
            addCriterion("aName =", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotEqualTo(String value) {
            addCriterion("aName <>", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameGreaterThan(String value) {
            addCriterion("aName >", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameGreaterThanOrEqualTo(String value) {
            addCriterion("aName >=", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameLessThan(String value) {
            addCriterion("aName <", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameLessThanOrEqualTo(String value) {
            addCriterion("aName <=", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameLike(String value) {
            addCriterion("aName like", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotLike(String value) {
            addCriterion("aName not like", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameIn(List<String> values) {
            addCriterion("aName in", values, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotIn(List<String> values) {
            addCriterion("aName not in", values, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameBetween(String value1, String value2) {
            addCriterion("aName between", value1, value2, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotBetween(String value1, String value2) {
            addCriterion("aName not between", value1, value2, "aname");
            return (Criteria) this;
        }

        public Criteria andAimgIsNull() {
            addCriterion("aImg is null");
            return (Criteria) this;
        }

        public Criteria andAimgIsNotNull() {
            addCriterion("aImg is not null");
            return (Criteria) this;
        }

        public Criteria andAimgEqualTo(String value) {
            addCriterion("aImg =", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgNotEqualTo(String value) {
            addCriterion("aImg <>", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgGreaterThan(String value) {
            addCriterion("aImg >", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgGreaterThanOrEqualTo(String value) {
            addCriterion("aImg >=", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgLessThan(String value) {
            addCriterion("aImg <", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgLessThanOrEqualTo(String value) {
            addCriterion("aImg <=", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgLike(String value) {
            addCriterion("aImg like", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgNotLike(String value) {
            addCriterion("aImg not like", value, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgIn(List<String> values) {
            addCriterion("aImg in", values, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgNotIn(List<String> values) {
            addCriterion("aImg not in", values, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgBetween(String value1, String value2) {
            addCriterion("aImg between", value1, value2, "aimg");
            return (Criteria) this;
        }

        public Criteria andAimgNotBetween(String value1, String value2) {
            addCriterion("aImg not between", value1, value2, "aimg");
            return (Criteria) this;
        }

        public Criteria andAsexIsNull() {
            addCriterion("asex is null");
            return (Criteria) this;
        }

        public Criteria andAsexIsNotNull() {
            addCriterion("asex is not null");
            return (Criteria) this;
        }

        public Criteria andAsexEqualTo(String value) {
            addCriterion("asex =", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexNotEqualTo(String value) {
            addCriterion("asex <>", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexGreaterThan(String value) {
            addCriterion("asex >", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexGreaterThanOrEqualTo(String value) {
            addCriterion("asex >=", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexLessThan(String value) {
            addCriterion("asex <", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexLessThanOrEqualTo(String value) {
            addCriterion("asex <=", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexLike(String value) {
            addCriterion("asex like", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexNotLike(String value) {
            addCriterion("asex not like", value, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexIn(List<String> values) {
            addCriterion("asex in", values, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexNotIn(List<String> values) {
            addCriterion("asex not in", values, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexBetween(String value1, String value2) {
            addCriterion("asex between", value1, value2, "asex");
            return (Criteria) this;
        }

        public Criteria andAsexNotBetween(String value1, String value2) {
            addCriterion("asex not between", value1, value2, "asex");
            return (Criteria) this;
        }

        public Criteria andApwdIsNull() {
            addCriterion("apwd is null");
            return (Criteria) this;
        }

        public Criteria andApwdIsNotNull() {
            addCriterion("apwd is not null");
            return (Criteria) this;
        }

        public Criteria andApwdEqualTo(String value) {
            addCriterion("apwd =", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdNotEqualTo(String value) {
            addCriterion("apwd <>", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdGreaterThan(String value) {
            addCriterion("apwd >", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdGreaterThanOrEqualTo(String value) {
            addCriterion("apwd >=", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdLessThan(String value) {
            addCriterion("apwd <", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdLessThanOrEqualTo(String value) {
            addCriterion("apwd <=", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdLike(String value) {
            addCriterion("apwd like", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdNotLike(String value) {
            addCriterion("apwd not like", value, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdIn(List<String> values) {
            addCriterion("apwd in", values, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdNotIn(List<String> values) {
            addCriterion("apwd not in", values, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdBetween(String value1, String value2) {
            addCriterion("apwd between", value1, value2, "apwd");
            return (Criteria) this;
        }

        public Criteria andApwdNotBetween(String value1, String value2) {
            addCriterion("apwd not between", value1, value2, "apwd");
            return (Criteria) this;
        }

        public Criteria andAemailIsNull() {
            addCriterion("aemail is null");
            return (Criteria) this;
        }

        public Criteria andAemailIsNotNull() {
            addCriterion("aemail is not null");
            return (Criteria) this;
        }

        public Criteria andAemailEqualTo(String value) {
            addCriterion("aemail =", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotEqualTo(String value) {
            addCriterion("aemail <>", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailGreaterThan(String value) {
            addCriterion("aemail >", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailGreaterThanOrEqualTo(String value) {
            addCriterion("aemail >=", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailLessThan(String value) {
            addCriterion("aemail <", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailLessThanOrEqualTo(String value) {
            addCriterion("aemail <=", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailLike(String value) {
            addCriterion("aemail like", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotLike(String value) {
            addCriterion("aemail not like", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailIn(List<String> values) {
            addCriterion("aemail in", values, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotIn(List<String> values) {
            addCriterion("aemail not in", values, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailBetween(String value1, String value2) {
            addCriterion("aemail between", value1, value2, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotBetween(String value1, String value2) {
            addCriterion("aemail not between", value1, value2, "aemail");
            return (Criteria) this;
        }

        public Criteria andAstateIsNull() {
            addCriterion("astate is null");
            return (Criteria) this;
        }

        public Criteria andAstateIsNotNull() {
            addCriterion("astate is not null");
            return (Criteria) this;
        }

        public Criteria andAstateEqualTo(String value) {
            addCriterion("astate =", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateNotEqualTo(String value) {
            addCriterion("astate <>", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateGreaterThan(String value) {
            addCriterion("astate >", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateGreaterThanOrEqualTo(String value) {
            addCriterion("astate >=", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateLessThan(String value) {
            addCriterion("astate <", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateLessThanOrEqualTo(String value) {
            addCriterion("astate <=", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateLike(String value) {
            addCriterion("astate like", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateNotLike(String value) {
            addCriterion("astate not like", value, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateIn(List<String> values) {
            addCriterion("astate in", values, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateNotIn(List<String> values) {
            addCriterion("astate not in", values, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateBetween(String value1, String value2) {
            addCriterion("astate between", value1, value2, "astate");
            return (Criteria) this;
        }

        public Criteria andAstateNotBetween(String value1, String value2) {
            addCriterion("astate not between", value1, value2, "astate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}